package pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

public class AppointmentRule {
    // 对应数据库 rule_id 字段
    private Integer ruleId;
    // 对应 rule_name 字段
    private String ruleName;
    // 对应 rule_content 字段
    private String ruleContent;
    // 对应 effective_start_time 字段
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date effectiveStartTime;

    // Getter & Setter 方法
    public Integer getRuleId() {
        return ruleId;
    }

    public void setRuleId(Integer ruleId) {
        this.ruleId = ruleId;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getRuleContent() {
        return ruleContent;
    }

    public void setRuleContent(String ruleContent) {
        this.ruleContent = ruleContent;
    }

    public Date getEffectiveStartTime() {
        return effectiveStartTime;
    }

    public void setEffectiveStartTime(Date effectiveStartTime) {
        this.effectiveStartTime = effectiveStartTime;
    }

    @Override
    public String toString() {
        return "AppointmentRule{" +
                "ruleId=" + ruleId +
                ", ruleName='" + ruleName + '\'' +
                ", ruleContent='" + ruleContent + '\'' +
                ", effectiveStartTime=" + effectiveStartTime +
                '}';
    }
}